package cn.wolfcode.crm.serivce;

import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.query.EmployeeQueryObject;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IRoleService {
    void deleteByPrimaryKey(Long id);
    void saveOrUpdate(Role record);
    Role selectByPrimaryKey(Long id);
    List<Role> selectAll();
    //分页相关
    PageResult query(QueryObject qo);
    List<Long> selectByEmployeeId(Long employeeId);

    List<String> selectNameByEmployeeId(Long id);
}
